package com.tensquare.article.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Macross
 * @Type Column.java
 * @Desc 专栏信息实体类
 * @date 2019/12/17 19:31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "tb_column")
@ApiModel(description = "专栏信息实体类")
public class Column implements Serializable {

    @Id
    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "专栏名称")
    private String name;

    @ApiModelProperty(value = "专栏简介")
    private String summary;

    @javax.persistence.Column(name = "userid")
    @ApiModelProperty(value = "用户id")
    private String userId;

    @javax.persistence.Column(name = "createtime")
    @ApiModelProperty(value = "申请时间")
    private Date createTime;

    @javax.persistence.Column(name = "checktime")
    @ApiModelProperty(value = "审核时间")
    private Date checkTime;

    @ApiModelProperty(value = "状态")
    private String state;
}
